package com.mc.model;


import java.util.List;



import java.io.Serializable;

public class SubMenu implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private Menu parentMenu;
    
    private List<Tmenu> childs;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

   
	public Menu getParentMenu() {
		return parentMenu;
	}

	public void setParentMenu(Menu parentMenu) {
		this.parentMenu = parentMenu;
	}
	
	public List<Tmenu> getChilds() {
		return childs;
	}

	public void setChilds(List<Tmenu> childs) {
		this.childs = childs;
	}

	@Override
	public String toString() {
		return "SubMenu [id=" + id + ", name=" + name + ", parentMenu="
				+ parentMenu + "]";
	}
    
    
}